package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.OrderStatistics;
import org.darkforest.vo.MemberConsumptionStatisticVo;

import java.util.List;
import java.util.Map;

@DBMapper
public interface OrderStatisticsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderStatistics record);

    int insertSelective(OrderStatistics record);

    OrderStatistics selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderStatistics record);

    int updateByPrimaryKey(OrderStatistics record);

    String getBySql(String sqlstr);

    OrderStatistics getAllOrderAmount();

    OrderStatistics getAllOrderAmountLimit(Integer days);

    List<OrderStatistics> findRecentlyOrderAmount(Integer storeId);

    List<OrderStatistics> findTopOrderAmount(Integer storeId);

    OrderStatistics getAllGoodsCount();

    List<OrderStatistics> statisticAllOrder(Integer days);

    OrderStatistics getOrderAmount(Integer storeId);

    OrderStatistics getOrderAmountLimit(Map map);

    OrderStatistics getGoodsCount(Integer storeId);

    List<OrderStatistics> statisticOrder(Map map);

    List<MemberConsumptionStatisticVo> getMemberConsumpStatisticInfo(MemberConsumptionStatisticVo record);
}